<%-- 
    Document   : editPost
    Created on : Nov 19, 2013, 8:43:46 PM
    Author     : Liem
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<jsp:include page="header.jsp"/>
<jsp:include page="leftbar.jsp"/>
<div class="main-wrapper">
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="primary-head">
                    <h3 class="page-header">Edit Post</h3>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span12">
                <c:import url="WEB-INF/xml/post.xml" var="xml" charEncoding="UTF-8"/>
                <c:import url="WEB-INF/xsl/getPostContent.xsl" var="xsl" charEncoding="UTF-8"/>
                <form class="form-actions" method="POST" action="editConfession.action">
                    <input type="hidden" name="id" value="${param.id}"/>
                    <input type="hidden" name="returnUrl" value="${param.returnUrl}"/>
                    <h6>Message:</h6>
                    <textarea style="margin: 10px 0px 10px; width: 98%; height: 150px;" name="confess" cols="550" rows="6"><x:transform xml="${xml}" xslt="${xsl}"><x:param name="id" value="${param.id}"/></x:transform></textarea>
                    <td><button class="btn btn-primary" type="submit">Save</button></td>
                    <a href="${param.returnUrl}" class="btn btn-extend">Return</a>
                </form>
            </div>
        </div>
    </div>
</div>

<jsp:include page="footer.jsp"/>
